-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email modification after creation #192
Email modification after creation #192
Conversation
66d59e7
to
8f3cb39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR should be probably opened to 2.1 branch (which should be created as well)
The base of this pull-request was changed, you need fetch and reset your local branch Unless you added new commits (to this branch) locally that you did not push yet, Feel free to ask for assistance when you get stuck 👍 |
898cb97
to
b7b4480
Compare
b7b4480
to
d837ca7
Compare
Thank you, Mateusz! 🎉 |
While the default configuration-based email creation is sufficient in most cases, it's not uncommon for one to need it conditional or dynamic in any other way. I thought about modifying the
EmailProvider::getEmail(string $code)
method to accept thearray $data
argument, but thought it would be more extendible to provide a set of modifiers services, that could be easily implemented in the application. Maybe it should also contain thesupport(EmailInterface $email): bool
method, to not force checking the email code inside themodify
method 🤔Let me know what you think about such a feature 🖖 I will add some documentation to this feature if we would like to proceed with it 🫡